package com.cy.pj.sys.service.Impl;

import com.cy.pj.sys.dao.SysMenuDao;
import com.cy.pj.sys.pojo.SysMenu;
import com.cy.pj.sys.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysMenuServiceImpl implements SysMenuService {
    @Autowired
    SysMenuDao sysMenuDao;
    @Override
    public List<SysMenu> findObjects() {

        return sysMenuDao.findObjects();
    }

    @Override
    public int savaObject(SysMenu entity) {
        //对参数校验（省略）

        return sysMenuDao.insertObjects(entity);
    }
}
